package org.wxd.media.schdcenter;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.wxd.media.schdcenter.config.MqConfig;

/**
 * Created by wangxd on 2016/11/5.
 */
@Configuration
public class MediaQueue {

    @Bean
    public Queue downLoad() {
        return new Queue(MqConfig.Queue.MediaCenter.DOWN_LOAD);
    }

    @Bean
    public Queue upload() {
        return new Queue(MqConfig.Queue.MediaCenter.UP_LOAD);
    }
}
